﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [Table(Tablename="member")]
    public class Member: BaseModel
    {
        private Int64 id;

        [Table(Columnname = "id", Columntype = "bigint", Iskey = true, Iscondition = true, Isdeletefield = true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname="store_no", Columntype="varchar", Iscondition=true)]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String memberno;

        [Table(Columnname = "member_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String Memberno
        {
            get { return memberno; }
            set { memberno = value; }
        }

        private String name;

        [Table(Columnname = "name", Columntype = "varchar", Iscondition = true, Conditiontype = ConditionType.LIKE, Isupdatefield = true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private DateTime birthday;

        [Table(Columnname = "birthday", Columntype="datetime", Isupdatefield=true)]
        public DateTime Birthday
        {
            get { return birthday; }
            set { birthday = value; }
        }

        private String tel;

        [Table(Columnname = "tel", Columntype = "varchar", Isupdatefield = true)]
        public String Tel
        {
            get { return tel; }
            set { tel = value; }
        }

        private String mobile;

        [Table(Columnname = "mobile", Columntype = "varchar", Iscondition = true, Isupdatefield = true)]
        public String Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }

        private String address;

        [Table(Columnname = "address", Columntype = "varchar", Isupdatefield = true)]
        public String Address
        {
            get { return address; }
            set { address = value; }
        }

        private String position;

        [Table(Columnname = "position", Columntype = "varchar", Isupdatefield = true)]
        public String Position
        {
            get { return position; }
            set { position = value; }
        }

        private String sex;

        [Table(Columnname = "sex", Columntype = "varchar", Isupdatefield = true)]
        public String Sex
        {
            get { return sex; }
            set { sex = value; }
        }

        private String qq;

        [Table(Columnname = "qq", Columntype = "varchar", Isupdatefield = true)]
        public String Qq
        {
            get { return qq; }
            set { qq = value; }
        }

        private String company;

        [Table(Columnname = "company", Columntype = "varchar", Isupdatefield = true)]
        public String Company
        {
            get { return company; }
            set { company = value; }
        }

        private String zip;

        [Table(Columnname = "zip", Columntype = "varchar", Isupdatefield = true)]
        public String Zip
        {
            get { return zip; }
            set { zip = value; }
        }

        private String email;

        [Table(Columnname = "email", Columntype = "varchar", Isupdatefield = true)]
        public String Email
        {
            get { return email; }
            set { email = value; }
        }

        private String fax;

        [Table(Columnname = "fax", Columntype = "varchar", Isupdatefield = true)]
        public String Fax
        {
            get { return fax; }
            set { fax = value; }
        }

        private String website;

        [Table(Columnname = "website", Columntype = "varchar", Isupdatefield = true)]
        public String Website
        {
            get { return website; }
            set { website = value; }
        }

        private String note;

        [Table(Columnname = "note", Columntype = "varchar", Isupdatefield = true)]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private Decimal balance;

        [Table(Columnname="balance", Columntype="decimal", Isupdatefield=true)]
        public Decimal Balance
        {
            get { return balance; }
            set { balance = value; }
        }

        private Int32 historyIntegral;

        [Table(Columnname = "history_integral", Columntype="int", Isupdatefield=true)]
        public Int32 HistoryIntegral
        {
            get { return historyIntegral; }
            set { historyIntegral = value; }
        }

        private Int32 currentIntegral;

        [Table(Columnname = "current_integral", Columntype = "int", Isupdatefield = true)]
        public Int32 CurrentIntegral
        {
            get { return currentIntegral; }
            set { currentIntegral = value; }
        }

        private Boolean isLock;

        [Table(Columnname="is_lock", Columntype="boolean", Isupdatefield=true)]
        public Boolean IsLock
        {
            get { return isLock; }
            set { isLock = value; }
        }

        private String lockReason;

        [Table(Columnname="lock_reason", Columntype="varchar", Isupdatefield=true)]
        public String LockReason
        {
            get { return lockReason; }
            set { lockReason = value; }
        }

        private DateTime lockTime;

        [Table(Columnname="lock_time", Columntype="datetime", Isupdatefield=true)]
        public DateTime LockTime
        {
            get { return lockTime; }
            set { lockTime = value; }
        }

        private String adminUsername;

        [Table(Columnname="admin_username", Columntype="varchar", Iscondition=true)]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname="admin_name", Columntype="varchar", Iscondition=true)]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }

        private DateTime createtime;

        [Table(Columnname = "createtime", Columntype = "datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }
    }
}
